<!DOCTYPE html>
<title>CSSOM Test: Chrome crash keeping rule with empty selector list</title>
<link rel="help" href="https://crbug.com/1499358">
<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
<p id="elem">PASS if no crash.</p>
<style id="sheet">.x, :where("something invalid") {} </style>
<script>
  elem.offsetTop;
  sheet.sheet.insertRule("p { color: green; }", 0);
</script>
